<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular.js"></script>
    <title></title>
</head>
<body  ng-app="myApp" ng-controller="myCrol">
<input type="text" ng-model="name">
<p>{{name}}</p>
<button ng-click="aa()">aa</button>
<script>
    var app = angular.module('myApp',[]);
    app.controller('myCrol',function($scope){
        $scope.name="hello world";
        $scope.aa = function(){
            alert($scope.name);
        }
    })
</script>
</body>
</html>